package cn.fl.carloan.service;

import cmm.mid.core.framework.page.KeyValueVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.carloan.vo.OdrClueInfoVO;
import fl.carloan.facade.carloan.condition.OdrClueInfoQC;
import fl.carloan.facade.carloan.dto.OdrClueInfoDTO;

import java.util.List;

;

/**
 * @Description: 预约线索表 客户端服务层接口
 * @Description: 持久层方法名称前缀：新增：insert* 删除：delete* 修改：update* 批量：batch* 查询对象：select* get* find* 查询集合：select*
 * @Description: 业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get* 批量：batch* 查询集合：search*
 */
public interface IOdrClueInfoService {
	
	/**
	 * 获取唯一对象
	 * @param id 主键
	 * @return 对象DTO
	 */
	public OdrClueInfoVO selectById(Long id)throws BaseException;
	
	/**
	 * 新增
	 * @param entity
	 * @return
	 */
    public Long add(OdrClueInfoVO entity) throws BaseException;

    /**
     * 删除
     * @param id
     * @return
     */
    public boolean removeById(Long id)throws BaseException;
    
    /**
     * 删除
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids)throws BaseException;

    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(OdrClueInfoVO entity)throws BaseException;

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page)throws BaseException;

	/**
	 * 增加线索信息
	 * @param odrClueInfoVO
	 * @return
	 */
	Long addClueInfo(OdrClueInfoVO odrClueInfoVO);

	/**
	 * 查询线索列表
	 * @param odrClueInfoQC
	 * @return
	 */
	List<OdrClueInfoDTO> searchClueList(OdrClueInfoQC odrClueInfoQC);

	/**
	 * 客户与线索绑定
	 * @param odrClueInfoVO
	 * @return
	 */
	boolean setCstToOdrClue(OdrClueInfoVO odrClueInfoVO);

	List<KeyValueVO> searchCdList(String codeGrpCstTypCd);

	/**
	 * 导出线索列表
	 * @param qc
	 * @param flServiceSysCd
	 * @param currentOrgCd
	 * @return
	 */
	public String exportOdrClueInfoDetail(OdrClueInfoQC qc, String flServiceSysCd, String currentOrgCd);

	/**
	 * 车抵贷：(电销主管)更新征信
	 * @param clueId
	 * @return
	 */
	//public Long updateOdrClueCredit(Long clueId) throws BaseException;

	
	//public boolean searchWhetherHasCreditTest() throws BaseException;;
}
